-
Notifications
You must be signed in to change notification settings - Fork 871
[Doc] 增加api_difference校验脚本,手动修复部分差异文档 #7552
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Doc] 增加api_difference校验脚本,手动修复部分差异文档 #7552
Conversation
|
感谢你贡献飞桨文档,文档预览构建中,Docs-New 跑完后即可预览,预览链接:http://preview-pr-7552.paddle-docs-preview.paddlepaddle.org.cn/documentation/docs/zh/api/index_cn.html |
| @@ -518,12 +519,12 @@ def generate_category2_table( | |||
| ): | |||
| continue | |||
| # 检查条件:mapping_type为"无参数"或"参数完全一致",src_api包含"torch",替换后与dst_api不等 | |||
| if mapping_type in ["无参数", "参数完全一致", "仅 API 调用方式不一致"]: | |||
| print(src_api) | |||
| # if mapping_type in ["无参数", "参数完全一致", "仅 API 调用方式不一致"]: | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里注释掉的原因是
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
用于debug,目前的版本不需要这段代码了,后续会继续优化一下代码内容
|
需要先拉一下最新的代码 |
| ## [ 参数默认值不一致 ]torch.alpha_dropout | ||
|
|
||
| ### [torch.alpha\_dropout](https://pytorch.org/docs/master/generated/torch.nn.functional.alpha_dropout.html) | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
看大部分的改动都是这个空行,这个地方也不用改。
这里是自动生成刷新,还是手动改的。
目前有可以自动生成的没,第2类的生成有可行性没
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
有些文件格式不统一,利用脚本对文件进行统一处理了一下,会导致有些文件有一些冗余处理,但是操作应该不可逆
No description provided.